package com.lwp.ctable.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.lwp.ctable.mapper.TimelineMapper;
import com.lwp.ctable.model.Timeline;
import com.lwp.ctable.service.serviceImp.TimelineService;

import java.util.List;

@Service
public class TimelineServiceImpl implements TimelineService{

    @Resource
    private TimelineMapper timelineMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return timelineMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Timeline record) {
        return timelineMapper.insert(record);
    }

    @Override
    public int insertSelective(Timeline record) {
        return timelineMapper.insertSelective(record);
    }

    @Override
    public Timeline selectByPrimaryKey(Long id) {
        return timelineMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Timeline> selectByUserId(Long user_id) {
        return timelineMapper.selectByUserId(user_id);
    }

    @Override
    public int updateByPrimaryKeySelective(Timeline record) {
        return timelineMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Timeline record) {
        return timelineMapper.updateByPrimaryKey(record);
    }

}
